<?php
namespace Common\Model;
use Common\Model\AiModel;
class DoctorClassModel extends AiModel {
	//通过id 字符串获取 汉字 擅长
	public function ToIdStringGetFont($string){

	  $font='';
      $sting=explode(',', $string);
      foreach ($sting as $key => $value) {
      	 $where['id']=$value;
      	 $info=$this->where($where)->find();
         $font.=$info['class_name'].'-';
      }

     $stringfont= rtrim($font,'-');
     return $stringfont;
	}

  public function ToIdStringGetArrayFont($string){

    $font='';
      $sting=explode(',', $string);
      foreach ($sting as $key => $value) {
         $where['id']=$value;
         $info=$this->where($where)->find();
         $font[$key]['class_name']=$info['class_name'];
      }


     return $font;
  }
}